<template>
	<view>

		<view class="box">
			<view class="list" v-for="(it,i) in arr" :key="i">
				<view style="padding-left: 30rpx;">
					<u-image  width="100" height="100" border-radius="100" :src="it.logo" ></u-image>
				</view>
				<view style="padding-left: 20rpx;padding-right: 30rpx;width: 100%;">
					<view style="font-weight: 600;font-size: 30rpx;color: #323232;">
						{{it.name}}
					</view>
					<view style="font-size: 26rpx;color: #A7A7A7;padding-top: 16rpx;">
						{{it.phone}}
					</view>
				</view>
				<view @click="dele(it,i)" class="buts">
					-
				</view>
			</view>
		</view>

		<view class="but">
			+添加成员
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr:[
					{
						logo:'../../../static/logo.png',
						name:'用户名称',
						phone:'13112344321'
					},
					{
						logo:'../../../static/logo.png',
						name:'用户名称',
						phone:'13112344321'
					},
					{
						logo:'../../../static/logo.png',
						name:'用户名称',
						phone:'13112344321'
					}
				]
			}
		},
		methods:{
			dele(it,i){
				uni.showModal({
				    title: '确认移除该成员？',
				    content: '移除后将不再列表显示',
				    success: function (res) {
				        if (res.confirm) {
				            console.log('用户点击确定');
				        } else if (res.cancel) {
				            console.log('用户点击取消');
				        }
				    }
				});
			}
		}
	}
</script>

<style>
	page{
		background-color: #F9F9F9;
	}
	.but {
		position: fixed;
		bottom: 30rpx;
		width: 690rpx;
		height: 90rpx;
		background: linear-gradient(-17deg, rgba(255, 114, 59, 1), rgba(255, 147, 67, 1));
		border-radius: 45rpx;
		left: 30rpx;
		text-align: center;
		line-height: 90rpx;
		color: white;
	}
	.box{
		padding: 40rpx 30rpx 100rpx 30rpx;
	}
	.list{
		padding: 40rpx 0;
		position: relative;
		display: flex;
		align-items: center;
		background-color: white;
		margin-bottom: 30rpx;
	}
	.buts{
		background-color: #FF6E6E;
		width: 36rpx;
		height: 36rpx;
		text-align: center;
		line-height: 34rpx;
		right: 20rpx;
		top: 20rpx;
		color: white;
		font-size: 34rpx;
		position: absolute;
		border-radius: 50%;
	}
</style>
